import Vue from 'vue'
import './plugins/axios'
import axios from 'axios';
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'
import './plugins/iview.js'
import global_ from './base/global'
Vue.prototype.GLO = global_
//引入在线编辑器
   axios.defaults.headers.common['Authorization'] = "Bearer "+'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjpbeyJob2JieSI6WyLlkIPkuJzopb8iLCLnnaHop4kiLCLot5HmraUiLCLnnIvnlLXlvbEiXSwiX2lkIjoiNWJlMmIzZTBhZGZjYjYyOGY4NTc2MjBlIiwibmFtZSI6InZhbXBpcmUiLCJwYXNzd29yZCI6ImxlbmcxMjIxIiwiZW1haWwiOiI1ODM1MTY4MDdAcXEuY29tIiwiYWdlIjoyMiwicGhvbmUiOjE3MzM4NTExMjA3LCJkZWdyZWUiOiLnoZXlo6siLCJzZXgiOnRydWUsImFkZHJlc3MiOiLmtZnmsZ_nnIHmna3lt57luIIiLCJfX3YiOjB9XSwiaWF0IjoxNTQxODE5NjA3fQ.Bnn0sxgIIpBf_BXN2x4by4JITKqkzAl_3LecRPEBhTU';
import VueQuillEditor from 'vue-quill-editor'

// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor)

Vue.config.productionTip = false;

//router.beforeEach((to,from,next)=>{
//	if(store.state.login){
//		next();
//	}else{
//		console.log(router);
////		router.push({path:'/login'});
//	}
//})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
